/* ========================================================
   PÓDIO TÁTICO COM PEDESTAL (BASE)
   ======================================================== */

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin: 40px 0;
    padding: 20px 30px 0 30px;
    background: 
        radial-gradient(circle at center, rgba(13, 13, 26, 0.4) 0%, #0d0d1a 100%),
        linear-gradient(rgba(0, 255, 204, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    border-radius: 20px 20px 0 0;
    border: 2px solid rgba(0, 255, 204, 0.15);
    border-bottom: none;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
    min-height: 240px;
    padding-bottom: 0;
}

/* Wrapper para agrupar item + base */
.podium-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px; /* largura fixa para todos */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🔥 FLUTUAÇÃO: ao passar o mouse, sobe o wrapper inteiro (item + base) */
.podium-wrapper:hover {
    transform: translateY(-10px);
    filter: brightness(1.1);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 10px 10px 10px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #111122 0%, #0a0a14 50%, #111122 100%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Chapa protetora superior */
.podium-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: inherit;
    border-bottom: 2px solid currentColor;
    box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.3);
    border-radius: 12px 12px 0 0;
}

/* Cores específicas - tudo na mesma cor (borda e base) */
.podium-1 { border-color: #ffd700 !important; }
.podium-1::after { background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.25), transparent); }

.podium-2 { border-color: #c0c0c0 !important; }
.podium-2::after { background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.15), transparent); }

.podium-3 { border-color: #cd7f32 !important; }
.podium-3::after { background: linear-gradient(90deg, transparent, rgba(205, 127, 50, 0.15), transparent); }

/* Destaque do usuário logado */
.podium-user {
    border-color: #00ffcc !important;
    animation: user-glow-neon 2s infinite alternate;
}

@keyframes user-glow-neon {
    0% {
        box-shadow: 0 -6px 35px rgba(0, 255, 204, 0.2);
        background: linear-gradient(135deg, rgba(0, 255, 204, 0.06), #0d0d1a);
    }
    100% {
        box-shadow: 0 -8px 45px rgba(0, 255, 204, 0.5);
        background: linear-gradient(135deg, rgba(0, 255, 204, 0.12), #0d0d1a);
    }
}

/* Rótulo do lugar */
.podium-label {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 4px;
    text-shadow: 0 0 8px currentColor;
}

/* Medalha SVG */
.podium-medal-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px 0 6px 0;
    z-index: 2;
    position: relative;
}

.svg-medal {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px currentColor);
    transition: all 0.3s ease;
}

/* Animação especial para o 1º lugar */
.medal-prime {
    animation: prime-glow-pulse 2.5s infinite ease-in-out;
}

@keyframes prime-glow-pulse {
    0% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.5));
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.3));
        transform: scale(1);
    }
}

.podium-item:hover .svg-medal {
    filter: drop-shadow(0 0 15px currentColor);
}

/* Nome e XP */
.podium-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    margin-top: 4px;
    line-height: 1.2;
}

.podium-xp {
    font-family: 'Courier New', monospace;
    color: #999;
    font-size: 12px;
    margin-top: 2px;
    font-weight: 300;
    opacity: 0.8;
}

.podium-xp::before { content: "xp//: "; opacity: 0.5; }
.podium-xp::after { content: " _pts"; opacity: 0.5; }

/* ======== PEDESTAL (BASE) ======== */
.podium-base {
    width: 100%;
    height: 18px;
    border-radius: 0 0 8px 8px;
    border: 2px solid;
    border-top: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* A base herda a cor da borda via inline style, mas garantimos que o 1º seja ouro */
.podium-wrapper .podium-base {
    border-color: inherit; /* herda do elemento pai, mas usamos inline style para consistência */
}

/* 🔥 Hover da base: sobe junto com o wrapper, já que o wrapper tem transform */
/* O wrapper já aplica o translateY, então a base acompanha */

/* Responsivo */
@media (max-width: 600px) {
    .podium-container {
        gap: 15px;
        padding: 10px 10px 0 10px;
    }
    .podium-wrapper {
        width: 80px;
    }
    .podium-item {
        padding: 10px 5px;
    }
    .podium-medal-wrapper {
        width: 40px;
        height: 40px;
    }
    .podium-label {
        font-size: 9px;
        letter-spacing: 1px;
    }
    .podium-name {
        font-size: 11px;
    }
    .podium-xp {
        font-size: 9px;
    }
    .podium-xp::before,
    .podium-xp::after {
        content: none; /* remove "xp//: " e " _pts" em mobile para não poluir */
    }
    .podium-base {
        height: 12px;
    }
}